package idv.long.mcv
{
	import idv.long.mcv.control.StartUpCommand;
	
	import org.puremvc.as3.patterns.facade.Facade;

	public class AppFacade extends Facade
	{
		public function AppFacade()
		{
			super();
		}
		
		public static function getInstance():AppFacade
		{
			if(instance == null)
				instance = new AppFacade();
			
			return AppFacade(instance);
		}
		
		override protected function initializeController():void
		{
			super.initializeController();
			
			this.registerCommand(NotifyType.STARTUP, StartUpCommand);
		}
		
		public function startUp(viewCopm:*):void
		{
			this.sendNotification(NotifyType.STARTUP, viewCopm);
		}
	}
}